package com.ruoyi.wgjlcData.domain.plat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.convert.ArrayToJsonDeserializer;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.wgjlcData.domain.vo.TestSuDu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 无轨胶轮车-运行速度测试项对象 data_wgjlc_sudu
 * 
 * @author ruoyi
 * @date 2024-02-27
 */
@ApiModel(value = "运行速度测试项对象")
public class DataWgjlcSudu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 运行速度id */
    private Long suduId;

    /** 任务id */
    @Excel(name = "任务id")
    private Long dataTaskId;

    /** 平板id */
    private Long id;

    /** 平板任务id */
    @Excel(name = "平板任务id")
    private Long taskId;

    /** 档位1平均最大速度 */
    @Excel(name = "档位1平均最大速度")
    @ApiModelProperty(value = "档位1平均最大速度")
    private String dw1Pjzdsd;

    /** 档位2平均最大速度 */
    @Excel(name = "档位2平均最大速度")
    @ApiModelProperty(value = "档位2平均最大速度")
    private String dw2Pjzdsd;

    /** 档位3平均最大速度 */
    @Excel(name = "档位3平均最大速度")
    @ApiModelProperty(value = "档位3平均最大速度")
    private String dw3Pjzdsd;

    /** 档位4平均最大速度 */
    @Excel(name = "档位4平均最大速度")
    @ApiModelProperty(value = "档位4平均最大速度")
    private String dw4Pjzdsd;

    /** 档位5平均最大速度 */
    @Excel(name = "档位5平均最大速度")
    @ApiModelProperty(value = "档位5平均最大速度")
    private String dw5Pjzdsd;

    /** 数值List */
    @Excel(name = "数值List")
    @JsonDeserialize(using = ArrayToJsonDeserializer.class)
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String dataList;


    /**
     * 数据条目数
     */
    private Integer listSize;

    /**
     * 单条测试项
     */
    private List<TestSuDu> testSuDuList;

    /** 保存时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "保存时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date saveTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setSuduId(Long suduId) 
    {
        this.suduId = suduId;
    }

    public Long getSuduId() 
    {
        return suduId;
    }
    public void setDataTaskId(Long dataTaskId) 
    {
        this.dataTaskId = dataTaskId;
    }

    public Long getDataTaskId() 
    {
        return dataTaskId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setDw1Pjzdsd(String dw1Pjzdsd) 
    {
        this.dw1Pjzdsd = dw1Pjzdsd;
    }

    public String getDw1Pjzdsd() 
    {
        return dw1Pjzdsd;
    }
    public void setDw2Pjzdsd(String dw2Pjzdsd) 
    {
        this.dw2Pjzdsd = dw2Pjzdsd;
    }

    public String getDw2Pjzdsd() 
    {
        return dw2Pjzdsd;
    }
    public void setDw3Pjzdsd(String dw3Pjzdsd) 
    {
        this.dw3Pjzdsd = dw3Pjzdsd;
    }

    public String getDw3Pjzdsd() 
    {
        return dw3Pjzdsd;
    }
    public void setDw4Pjzdsd(String dw4Pjzdsd) 
    {
        this.dw4Pjzdsd = dw4Pjzdsd;
    }

    public String getDw4Pjzdsd() 
    {
        return dw4Pjzdsd;
    }
    public void setDw5Pjzdsd(String dw5Pjzdsd) 
    {
        this.dw5Pjzdsd = dw5Pjzdsd;
    }

    public String getDw5Pjzdsd() 
    {
        return dw5Pjzdsd;
    }
    public void setDataList(String dataList) 
    {
        this.dataList = dataList;
    }

    public String getDataList() 
    {
        return dataList;
    }
    public void setSaveTime(Date saveTime) 
    {
        this.saveTime = saveTime;
    }

    public Date getSaveTime() 
    {
        return saveTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TestSuDu> getTestSuDuList() {
        return testSuDuList;
    }

    public void setTestSuDuList(List<TestSuDu> testSuDuList) {
        this.testSuDuList = testSuDuList;
    }

    public Integer getListSize() {
        return listSize;
    }

    public void setListSize(Integer listSize) {
        this.listSize = listSize;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("suduId", getSuduId())
            .append("dataTaskId", getDataTaskId())
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("dw1Pjzdsd", getDw1Pjzdsd())
            .append("dw2Pjzdsd", getDw2Pjzdsd())
            .append("dw3Pjzdsd", getDw3Pjzdsd())
            .append("dw4Pjzdsd", getDw4Pjzdsd())
            .append("dw5Pjzdsd", getDw5Pjzdsd())
            .append("dataList", getDataList())
            .append("saveTime", getSaveTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
